#@edit()
#define content()
<!-- form start -->
<form class="form-horizontal" action="/admin/doSave" method="post">
    <div class="box-body">
    	#if(null==itemData)
        <div class="form-group">
            <label class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-10">
                <input type="text" name="user_name" class="form-control input-sm" placeholder="用户名" required="required" />
            </div>
        </div>
        #end
        <div class="form-group">
            <label class="col-sm-2 control-label">登录密码</label>
            <div class="col-sm-10">
                <div class="input-group">
                    <span class="xsui-password-input"><input type="password" name="password" class="form-control input-sm" placeholder="密码" required="required" value="#(itemData.password??)" /></span>
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-sm xsui-btn-show-password" type="button" title="显示密码"><span class="glyphicon glyphicon-eye-open"></span></button>
                    </span>
                </div>                
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">操作密码</label>
            <div class="col-sm-10">
                <div class="input-group">
                    <span class="xsui-password-input"><input type="password" name="operate_password" class="form-control input-sm" placeholder="密码" required="required" value="#(itemData.operate_password??)" /></span>
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-sm xsui-btn-show-password" type="button" title="显示密码"><span class="glyphicon glyphicon-eye-open"></span></button>
                    </span>
                </div>                
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">关联代理ID</label>
            <div class="col-sm-10">
                <input type="text" name="member_uid" class="form-control input-sm" placeholder="关联代理ID" value="#(itemData.member_uid??)" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
                <input type="text" name="realname" class="form-control input-sm" placeholder="姓名" value="#(itemData.realname??)" required="required" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">电子邮件</label>
            <div class="col-sm-10">
                <input type="email" name="email" class="form-control input-sm" placeholder="电子邮件" value="#(itemData.email??)" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">手机号码</label>
            <div class="col-sm-10">
                <input type="text" name="mobile" class="form-control input-sm" placeholder="手机号码" value="#(itemData.mobile??)" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">用户头像</label>
            <div class="col-sm-10">
                <div class="input-group">
                    <input type="text" name="face_url" class="form-control input-sm"  placeholder="用户头像"  value="#(itemData.face_url??)"/>
                    <span class="input-group-btn">
                        <a href="/uploader/delete" class="btn btn-default btn-sm xsui-btn-singlefile-delete-image" title="删除图片">删除</a>
                        <a href="/uploader/single_file/?name=face_url" class="btn btn-default btn-sm xsui-btn-singlefile-uploader-image" title="选择图片并上传">上传</a>
                    </span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">状态</label>
            <div class="col-sm-10">
                <label class="radio-inline"><input type="radio" name="status" value="1" checked="checked" data-value="#(itemData.user_status??)"> 启用</label>
                <label class="radio-inline"><input type="radio" name="status" value="0" data-value="#(itemData.user_status??)"> 禁用</label>
            </div>
        </div>
    </div>
    #if((itemData.user_id??0) > 0)
    <input type="hidden" name="user_id" value="#(itemData.user_id??)" />
    #end
    <!-- /.box-body -->
    <div class="box-footer">
        <button type="button" class="btn btn-default xsui-btn-close-dialog">取消</button>
        <button type="submit" class="btn btn-primary pull-right">保存</button>
    </div>
    <!-- /.box-footer -->
</form>
#end
#define script_after()
<script>
    xsApp.xsfnTogglePassword();
</script>
#end